FROM openshift/golang-builder@sha256:4820580c3368f320581eb9e32cf97aeec179a86c5749753a14ed76410a293d83 AS builder
ENV __doozer=update BUILD_RELEASE=202202160023.p0.g6b16f7f.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.g6b16f7f.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=6b16f7f OS_GIT_VERSION=4.10.0-202202160023.p0.g6b16f7f.assembly.stream-6b16f7f SOURCE_DATE_EPOCH=1644875679 SOURCE_GIT_COMMIT=6b16f7fa1a9561fd0c47f7cbd17ef6c4332485c7 SOURCE_GIT_TAG=v4.0.0-alpha.0-479-g6b16f7fa1 SOURCE_GIT_URL=https://github.com/openshift/openshift-apiserver 
WORKDIR /go/src/github.com/openshift/openshift-apiserver
COPY . .
RUN make build --warn-undefined-variables

FROM openshift/ose-base:v4.10.0.20220216.010142
ENV __doozer=update BUILD_RELEASE=202202160023.p0.g6b16f7f.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.g6b16f7f.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=6b16f7f OS_GIT_VERSION=4.10.0-202202160023.p0.g6b16f7f.assembly.stream-6b16f7f SOURCE_DATE_EPOCH=1644875679 SOURCE_GIT_COMMIT=6b16f7fa1a9561fd0c47f7cbd17ef6c4332485c7 SOURCE_GIT_TAG=v4.0.0-alpha.0-479-g6b16f7fa1 SOURCE_GIT_URL=https://github.com/openshift/openshift-apiserver 
COPY --from=builder /go/src/github.com/openshift/openshift-apiserver/openshift-apiserver /usr/bin/
ENTRYPOINT ["/usr/bin/openshift-apiserver"]

LABEL \
        io.k8s.display-name="OpenShift API Server Command" \
        io.k8s.description="OpenShift is a platform for developing, building, and deploying containerized applications." \
        io.openshift.tags="openshift,openshift-apiserver" \
        name="openshift/ose-openshift-apiserver" \
        com.redhat.component="ose-openshift-apiserver-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="openshift-apiserver" \
        release="202202160023.p0.g6b16f7f.assembly.stream" \
        io.openshift.build.commit.id="6b16f7fa1a9561fd0c47f7cbd17ef6c4332485c7" \
        io.openshift.build.source-location="https://github.com/openshift/openshift-apiserver" \
        io.openshift.build.commit.url="https://github.com/openshift/openshift-apiserver/commit/6b16f7fa1a9561fd0c47f7cbd17ef6c4332485c7" \
        version="v4.10.0"

